/ === SPECIAL EFFECTS ===

/ arrow cluster
type=entity,ID=arrow,pos=#bowPos,NBTTag=(Motion=#bowMotion(1.0,5.0),Color=-1),amount=20@luck=2

/ arrow stream
type=entity,ID=arrow,pos=#bowPos,NBTTag=(Motion=#bowMotion,Color=-1),amount=30,delay=#rand(0.0,3.0)@luck=2

/ sword
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=iron_sword),damage=10.0)@luck=2

/ egg
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=egg),
    damage=1.0,
    impact=["type=entity,ID=chicken"]
)@luck=-1

/ meteorite
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=stone),
    trail=(frequency=0.1,drops=["type=block,ID=stone,delay=0.4","type=block,ID=stone,meta=1,delay=0.4@chance=0.3"]),
    impact=["group(type=explosion,damage=4,fire=true;type=structure,ID=meteor,delay=0.4)"]
)@chance=0.5@luck=2

/ tnt
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=tnt),
    trail=(frequency=0.2,drops=["type=particle,ID=smoke"]),
    impact=["group(type=difficulty,ID=hard;type=explosion,damage=4)"]
)@luck=2

/ pickaxe hole
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=iron_pickaxe),
    trail=(frequency=0.5,drops=["type=particle,ID=block.dirt"]),
    impact=["group(
        type=structure,ID=drill_hole,posY=#bPosY-1;
        type=particle,ID=block.dirt,posY=#bExactPosY-7,size=(2.0,3.0,2.0),particleAmount=2000;
        type=sound,ID=block.gravel.break,volume=2.0
    )"]
)@luck=2

/ water and lava buckets
group:1:(
    type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
        Motion=#bowMotion,
        item=(id=water_bucket),
        trail=(frequency=0.5,drops=["type=particle,ID=splash"]),
        impact=["type=block,ID=water"]);
    type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
        Motion=#bowMotion,
        item=(id=lava_bucket),
        trail=(frequency=0.5,drops=["type=particle,ID=smoke"]),
        impact=["type=block,ID=lava"]
    )
)@luck=2

/ lightening creeper
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=creeper_head),
    impact=["group(type=difficulty,ID=hard;type=entity,ID=creeper;type=entity,ID=lightning_bolt)"]
)@luck=2

/ knockback
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=feather),
    impact=["group(
        type=effect,ID=special_knockback,power=2.5,range=4,delay=0.1;
        type=particle,ID=poof,size=(1.5,1.0,1.5),particleAmount=500
    )"]
)@luck=2

/ monsters
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion(1.0,2.0),
    item=(id=#randList(zombie_spawn_egg,skeleton_spawn_egg,spider_spawn_egg)),
    impact=["group(
        type=difficulty,ID=hard;
        type=entity,ID=#randList(zombie,skeleton,spider),posOffset=#circleOffset(0,2)
    )"]
),amount=#rand(7,10)@luck=2

/ potions
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion(1.0,2.0),
    item=(id=splash_potion,tag=(Potion=#randList(poison,weakness,slowness,harming))),
    impact=["group(
        type=effect,ID=#randList(19,18,2,7),range=4,amplifier=#rand(0,2),duration=30;
        type=particle,ID=splashpotion,potion=#randList(poison,weakness,slowness,harming)
    )"]
),amount=#rand(7,10)@luck=2

/ fire
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=fire_charge),
    trail=(frequency=0.5,drops=["type=particle,ID=lava"]),
    impact=["group(
        type=block,ID=fire,posOffset=#circleOffset(0,3),amount=50;
        type=block,ID=flowing_lava
    )"]
)@luck=2

/ spider web
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=cobweb),
    impact=["type=fill,ID=cobweb,size=(3,2,3),posOffset=(-1,0,-1)"]
)@luck=2

/ === NORMAL ARROW ===

type=entity,ID=arrow,pos=#bowPos,NBTTag=(Motion=#bowMotion,Color=-1)@chance=20



/ TNT
type=entity,ID=lucky:LuckyProjectile,pos=#bowPos,NBTTag=(Motion=#bowMotion,item=(id=tnt),trail=(frequency=0.2,drops=["type=particle,ID=smoke,posY=#bExactPosY+0.4)"]),impact=["group(type=difficulty,ID=hard;type=explosion,damage=4)"])@luck=2

/ Arrow
type=entity,ID=Arrow,pos=#bowPos,NBTTag=(Motion=#bowMotion)@chance=2


/ fire
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=coal),
    trail=(frequency=0.5,drops=["type=particle,ID=block coal_block"]),
    impact=["group(type=command,ID="/setblock ~ ~1 ~ fire",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=1;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=3;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=4;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=5;
type=explosion,radius=2,fire=false,delay=6;
type=command,ID="/particle block coal_block ~ ~ ~ 1 1 1 1 1000 normal",delay=6.1;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:coal_block"},Time:1,Motion:[0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:coal_block"},Time:1,Motion:[-0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:coal_block"},Time:1,Motion:[0.0,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:coal_block"},Time:1,Motion:[0.0,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:coal_block"},Time:1,Motion:[-0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:coal_block"},Time:1,Motion:[-0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:coal_block"},Time:1,Motion:[0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:coal_block"},Time:1,Motion:[0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.0],Item:{id:"minecraft:coal",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.0],Item:{id:"minecraft:coal",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,0.5],Item:{id:"minecraft:coal",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,-0.5],Item:{id:"minecraft:coal",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,-0.5],Item:{id:"minecraft:coal",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.5],Item:{id:"minecraft:coal",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.5],Item:{id:"minecraft:coal",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,-0.5],Item:{id:"minecraft:coal",Count:1b}}",delay=6
)"]
)@luck=2

/ fire
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=iron_ingot),
    trail=(frequency=0.5,drops=["type=particle,ID=cloud"]),
    impact=["group(type=command,ID="/setblock ~ ~1 ~ fire",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=1;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=3;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=4;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=5;
type=explosion,radius=2,fire=false,delay=6;
type=command,ID="/particle block iron_block ~ ~ ~ 1 1 1 1 1000 normal",delay=6.1;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:iron_block"},Time:1,Motion:[0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:iron_block"},Time:1,Motion:[-0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:iron_block"},Time:1,Motion:[0.0,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:iron_block"},Time:1,Motion:[0.0,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:iron_block"},Time:1,Motion:[-0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:iron_block"},Time:1,Motion:[-0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:iron_block"},Time:1,Motion:[0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:iron_block"},Time:1,Motion:[0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.0],Item:{id:"minecraft:iron_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.0],Item:{id:"minecraft:iron_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,0.5],Item:{id:"minecraft:iron_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,-0.5],Item:{id:"minecraft:iron_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,-0.5],Item:{id:"minecraft:iron_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.5],Item:{id:"minecraft:iron_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.5],Item:{id:"minecraft:iron_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,-0.5],Item:{id:"minecraft:iron_ingot",Count:1b}}",delay=6
)"]
)@luck=2

/ fire
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=gold_ingot),
    trail=(frequency=0.5,drops=["type=particle,ID=fire"]),
    impact=["group(type=command,ID="/setblock ~ ~1 ~ fire",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=1;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=3;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=4;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=5;
type=explosion,radius=2,fire=false,delay=6;
type=command,ID="/particle block gold_block ~ ~ ~ 1 1 1 1 1000 normal",delay=6.1;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:gold_block"},Time:1,Motion:[0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:gold_block"},Time:1,Motion:[-0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:gold_block"},Time:1,Motion:[0.0,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:gold_block"},Time:1,Motion:[0.0,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:gold_block"},Time:1,Motion:[-0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:gold_block"},Time:1,Motion:[-0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:gold_block"},Time:1,Motion:[0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:gold_block"},Time:1,Motion:[0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.0],Item:{id:"minecraft:gold_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.0],Item:{id:"minecraft:gold_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,0.5],Item:{id:"minecraft:gold_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,-0.5],Item:{id:"minecraft:gold_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,-0.5],Item:{id:"minecraft:gold_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.5],Item:{id:"minecraft:gold_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.5],Item:{id:"minecraft:gold_ingot",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,-0.5],Item:{id:"minecraft:gold_ingot",Count:1b}}",delay=6
)"]
)@luck=2

/ fire
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=diamond),
    trail=(frequency=0.5,drops=["type=particle,ID=soul_fire_flame"]),
    impact=["group(type=command,ID="/setblock ~ ~1 ~ fire",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=1;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=3;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=4;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=5;
type=explosion,radius=2,fire=false,delay=6;
type=command,ID="/particle block diamond_block ~ ~ ~ 1 1 1 1 1000 normal",delay=6.1;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:diamond_block"},Time:1,Motion:[0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:diamond_block"},Time:1,Motion:[-0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:diamond_block"},Time:1,Motion:[0.0,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:diamond_block"},Time:1,Motion:[0.0,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:diamond_block"},Time:1,Motion:[-0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:diamond_block"},Time:1,Motion:[-0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:diamond_block"},Time:1,Motion:[0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:diamond_block"},Time:1,Motion:[0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.0],Item:{id:"minecraft:diamond",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.0],Item:{id:"minecraft:diamond",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,0.5],Item:{id:"minecraft:diamond",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,-0.5],Item:{id:"minecraft:diamond",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,-0.5],Item:{id:"minecraft:diamond",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.5],Item:{id:"minecraft:diamond",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.5],Item:{id:"minecraft:diamond",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,-0.5],Item:{id:"minecraft:diamond",Count:1b}}",delay=6
)"]
)@luck=2

/ fire
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=emerald),
    trail=(frequency=0.5,drops=["type=particle,ID=happy_villager"]),
    impact=["group(type=command,ID="/setblock ~ ~1 ~ fire",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=1;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=3;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=4;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=5;
type=explosion,radius=2,fire=false,delay=6;
type=command,ID="/particle block emerald_block ~ ~ ~ 1 1 1 1 1000 normal",delay=6.1;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:emerald_block"},Time:1,Motion:[0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:emerald_block"},Time:1,Motion:[-0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:emerald_block"},Time:1,Motion:[0.0,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:emerald_block"},Time:1,Motion:[0.0,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:emerald_block"},Time:1,Motion:[-0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:emerald_block"},Time:1,Motion:[-0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:emerald_block"},Time:1,Motion:[0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:emerald_block"},Time:1,Motion:[0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.0],Item:{id:"minecraft:emerald",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.0],Item:{id:"minecraft:emerald",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,0.5],Item:{id:"minecraft:emerald",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,-0.5],Item:{id:"minecraft:emerald",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,-0.5],Item:{id:"minecraft:emerald",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.5],Item:{id:"minecraft:emerald",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.5],Item:{id:"minecraft:emerald",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,-0.5],Item:{id:"minecraft:emerald",Count:1b}}",delay=6
)"]
)@luck=2

/ fire
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=lapis_lazuli),
    trail=(frequency=0.5,drops=["type=particle,ID=splash"]),
    impact=["group(type=command,ID="/setblock ~ ~1 ~ fire",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=1;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=3;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=4;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=5;
type=explosion,radius=2,fire=false,delay=6;
type=command,ID="/particle block lapis_block ~ ~ ~ 1 1 1 1 1000 normal",delay=6.1;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:lapis_block"},Time:1,Motion:[0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:lapis_block"},Time:1,Motion:[-0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:lapis_block"},Time:1,Motion:[0.0,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:lapis_block"},Time:1,Motion:[0.0,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:lapis_block"},Time:1,Motion:[-0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:lapis_block"},Time:1,Motion:[-0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:lapis_block"},Time:1,Motion:[0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:lapis_block"},Time:1,Motion:[0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.0],Item:{id:"minecraft:lapis_lazuli",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.0],Item:{id:"minecraft:lapis_lazuli",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,0.5],Item:{id:"minecraft:lapis_lazuli",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,-0.5],Item:{id:"minecraft:lapis_lazuli",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,-0.5],Item:{id:"minecraft:lapis_lazuli",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.5],Item:{id:"minecraft:lapis_lazuli",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.5],Item:{id:"minecraft:lapis_lazuli",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,-0.5],Item:{id:"minecraft:lapis_lazuli",Count:1b}}",delay=6
)"]
)@luck=2

/ fire
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=copper),
    trail=(frequency=0.5,drops=["type=particle,ID=wax_on"]),
    impact=["group(type=command,ID="/setblock ~ ~1 ~ fire",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=1;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=3;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=4;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=5;
type=explosion,radius=2,fire=false,delay=6;
type=command,ID="/particle block copper_block ~ ~ ~ 1 1 1 1 1000 normal",delay=6.1;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:copper_block"},Time:1,Motion:[0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:copper_block"},Time:1,Motion:[-0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:copper_block"},Time:1,Motion:[0.0,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:copper_block"},Time:1,Motion:[0.0,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:copper_block"},Time:1,Motion:[-0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:copper_block"},Time:1,Motion:[-0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:copper_block"},Time:1,Motion:[0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:copper_block"},Time:1,Motion:[0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.0],Item:{id:"minecraft:copper",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.0],Item:{id:"minecraft:copper",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,0.5],Item:{id:"minecraft:copper",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,-0.5],Item:{id:"minecraft:copper",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,-0.5],Item:{id:"minecraft:copper",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.5],Item:{id:"minecraft:copper",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.5],Item:{id:"minecraft:copper",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,-0.5],Item:{id:"minecraft:copper",Count:1b}}",delay=6
)"]
)@luck=2

/ fire
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=redstone),
    trail=(frequency=0.5,drops=["type=particle,ID=redstone_dust"]),
    impact=["group(type=command,ID="/setblock ~ ~1 ~ fire",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=1;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=3;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=4;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=5;
type=explosion,radius=2,fire=false,delay=6;
type=command,ID="/particle block redstone_block ~ ~ ~ 1 1 1 1 1000 normal",delay=6.1;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:redstone_block"},Time:1,Motion:[0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:redstone_block"},Time:1,Motion:[-0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:redstone_block"},Time:1,Motion:[0.0,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:redstone_block"},Time:1,Motion:[0.0,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:redstone_block"},Time:1,Motion:[-0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:redstone_block"},Time:1,Motion:[-0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:redstone_block"},Time:1,Motion:[0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:redstone_block"},Time:1,Motion:[0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.0],Item:{id:"minecraft:redstone",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.0],Item:{id:"minecraft:redstone",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,0.5],Item:{id:"minecraft:redstone",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,-0.5],Item:{id:"minecraft:redstone",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,-0.5],Item:{id:"minecraft:redstone",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.5],Item:{id:"minecraft:redstone",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.5],Item:{id:"minecraft:redstone",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,-0.5],Item:{id:"minecraft:redstone",Count:1b}}",delay=6
)"]
)@luck=2

/ fire
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=beacon),
    trail=(frequency=0.5,drops=["type=particle,ID=end_rod"]),
    impact=["group(type=command,ID="/setblock ~ ~1 ~ fire",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=1;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=3;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=4;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=5;
type=explosion,radius=2,fire=false,delay=6;
type=command,ID="/particle block beacon ~ ~ ~ 1 1 1 1 1000 normal",delay=6.1;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:beacon"},Time:1,Motion:[0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:beacon"},Time:1,Motion:[-0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:beacon"},Time:1,Motion:[0.0,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:beacon"},Time:1,Motion:[0.0,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:beacon"},Time:1,Motion:[-0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:beacon"},Time:1,Motion:[-0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:beacon"},Time:1,Motion:[0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:beacon"},Time:1,Motion:[0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.0],Item:{id:"minecraft:beacon",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.0],Item:{id:"minecraft:beacon",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,0.5],Item:{id:"minecraft:beacon",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,-0.5],Item:{id:"minecraft:beacon",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,-0.5],Item:{id:"minecraft:beacon",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.5],Item:{id:"minecraft:beacon",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.5],Item:{id:"minecraft:beacon",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,-0.5],Item:{id:"minecraft:beacon",Count:1b}}",delay=6
)"]
)@luck=2

/ fire
type=entity,ID=lucky:lucky_projectile,pos=#bowPos,NBTTag=(
    Motion=#bowMotion,
    item=(id=lucky:electronic_lucky_block),
    trail=(frequency=0.5,drops=["type=particle,ID=ash"]),
    impact=["group(type=command,ID="/setblock ~ ~1 ~ fire",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=1;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=2;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=3;
type=command,ID="/setblock ~ ~ ~ red_wool",delay=4;
type=command,ID="/setblock ~ ~ ~ black_wool",delay=5;
type=explosion,radius=2,fire=false,delay=6;
type=command,ID="/particle block electronic_lucky_block ~ ~ ~ 1 1 1 1 1000 normal",delay=6.1;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:electronic_lucky_block"},Time:1,Motion:[0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:electronic_lucky_block"},Time:1,Motion:[-0.25,0.25,0.0]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:electronic_lucky_block"},Time:1,Motion:[0.0,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:electronic_lucky_block"},Time:1,Motion:[0.0,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:electronic_lucky_block"},Time:1,Motion:[-0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:electronic_lucky_block"},Time:1,Motion:[-0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:electronic_lucky_block"},Time:1,Motion:[0.25,0.25,0.25]}",delay=6;
type=command,ID="/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:electronic_lucky_block"},Time:1,Motion:[0.25,0.25,-0.25]}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.0],Item:{id:"minecraft:electronic_lucky_block",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.0],Item:{id:"minecraft:electronic_lucky_block",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,0.5],Item:{id:"minecraft:electronic_lucky_block",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.0,0.5,-0.5],Item:{id:"minecraft:electronic_lucky_block",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,-0.5],Item:{id:"minecraft:electronic_lucky_block",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[-0.5,0.5,0.5],Item:{id:"minecraft:electronic_lucky_block",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,0.5],Item:{id:"minecraft:electronic_lucky_block",Count:1b}}",delay=6;
type=command,ID="/summon item ~ ~1 ~ {Motion:[0.5,0.5,-0.5],Item:{id:"minecraft:electronic_lucky_block",Count:1b}}",delay=6
)"]
)@luck=2



